package ebook.server;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Member {

     @PrimaryKey
     @Persistent( valueStrategy = IdGeneratorStrategy.IDENTITY )
     private Long id;
     
     @Persistent
     private String email;
     
     @Persistent
     private String bookmaker;
     
     @Persistent
     private String pass;
          
     public String getBookmaker(){
    	 return bookmaker;
     }
     
	public Member(String bookmaker){
		
		this.bookmaker = bookmaker;
	}
     public Member(Long id, String email, String pass, String bookmaker) {
         this.id = id;
    	 this.email = email;
         this.pass = pass;
         this.bookmaker = bookmaker;
    }
     public Member(String email, String pass) {
          this.email = email;
          this.pass = pass;
     }
     public Member() {
		// TODO Auto-generated constructor stub
	}

	public Long getId() {
		return id;
     }
     
     public String getPass() {
          return pass;
     }
     public String getEmail() {
          return email;
     }
     public void setPass(String pass) {
         this.pass = pass;
     }
    
     public void setEmail(String email) {
         this.email = email;
     }
     public void setBookmaker(String bookmaker){
    	 this.bookmaker = bookmaker;
     }
     public void setId(Long id) {
    	 this.id = id;
     }
}
